package com.spark.trouble.handle

import android.os.Bundle
import android.view.View
import com.spark.common.BaseFragment
import com.spark.trouble.R
import kotlinx.android.synthetic.main.act_input_ht.*

class HTInputFragment : BaseFragment(){
    companion object {
        fun newInstance(): HTInputFragment {
            val target = HTInputFragment()
            val args = Bundle()

            target.arguments = args
            return target
        }
    }
    override fun contentResId(): Int {
        return R.layout.act_input_ht
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        iv_back.setOnClickListener { activity?.finish() }
        tv_title.text = "隐患录入"
    }

    override fun onFragmentResult(requestCode: Int, resultCode: Int, data: Bundle?) {
        super.onFragmentResult(requestCode, resultCode, data)
        topChildFragment.onFragmentResult(requestCode,resultCode,data)
    }

}